﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TeacherConsleApp
{
    class Programs
    {
        //static void Main(string[] args)
        //{

        //    Batmobile batCar = new Batmobile("第一代");
        //    batCar.Run();
        //    batCar.Fly();
        //}
    }
    class Batmobile:Car,IFly
    {
        public  Batmobile(string type):base(type) { 
        }
        public void Run() { 
            Console.WriteLine("我是型号为{0}蝙蝠的战车",base.Tpye1);

        }
        public void Fly() {
            Console.WriteLine("我能飞");
        }
    }

class Car {
    private string Tpye;

    public string Tpye1 { get => Tpye; set => Tpye = value; }
    public Car(string Type1) {
        this.Tpye = Tpye1;
    }
} 
    interface IFly
    {
        void Fly();
    }
}
